<%@include file="/page/tag.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<!--框架必需start-->
<script type="text/javascript" src="${ctp}/QUI/libs/js/jquery.js"></script>
<script type="text/javascript" src="${ctp}/QUI/libs/js/language/cn.js"></script>
<script type="text/javascript" src="${ctp}/QUI/libs/js/framework.js"></script>
<link href="${ctp}/QUI/libs/css/import_basic.css" rel="stylesheet"	type="text/css" />
<link href="${ctp}/QUI/libs/skins/lightBlue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="deepBlue"/>
<!-- 表单验证start -->
<script src="${ctp}/QUI/libs/js/form/validationRule.js" type="text/javascript"></script>
<script src="${ctp}/QUI/libs/js/form/validation.js" type="text/javascript"></script>
<!-- 表单验证end -->

<!--数据表格start-->
<script src="${ctp}/QUI/libs/js/table/quiGrid.js" type="text/javascript"></script>
<!--数据表格end-->

<!--框架必需end-->
<style>
.down_li{
	margin-left: 10px;
}
</style>
</head>
<body>
	<div style="font-size: 24px; padding-top:10px; padding-bottom:10px; text-align: center;">
		<c:out value="${sysCompanyInfo.companyName }"/>
	</div>
		
	        <table class="tableStyle" formMode="line">
				<tr>
				<td>仓库：</td>
				<td colspan="">
					<c:out value="${erpStorageFlow.erpStorage.storageName }"/>
				</td>
				
				<td>总价：</td>
				<td colspan="">
					<c:out value="${erpStorageFlow.storageFlowTotalPrice}"/>
				</td>
				
				<td>类型：</td>
				<td colspan="">
					<c:choose>
						<c:when test="${erpStorageFlow.storageFlowType == StateValue.InStorage_key }">入库</c:when>
						<c:when test="${erpStorageFlow.storageFlowType == StateValue.OutStorage_key }">出库</c:when>
					</c:choose>
				</td>
			</tr>
			
			<tr>
				<td style="width: 50px;">备注：</td>
				<td colspan="5">
					<c:out value="${erpStorageFlow.remark }" />
				</td>
			</tr>
			
			</table>
			
			
			<table class="tableStyle">
			    <tr>
			        <th>商品</th><th>单位</th><th>单价</th><th>数量</th><th>总价</th>
			    </tr>
			    
			    <c:forEach var="it" items="${erpStorageFlowDetailList }">
			    	<tr>
				        <td><c:out value="${it.erpGoodInfo.goodName }"/></td>
				        <td><c:out value="${it.erpGoodInfo.goodUnit }"/></td>
				        <td><c:out value="${it.price }"/></td>
				        <td><c:out value="${it.count }"/></td>
				        <td><c:out value="${it.price * it.count }"/></td>
				    </tr>
			    </c:forEach>
			    
		  </table>
 		<div style="width: 100%; text-align: center; margin-top: 10px;">
 			<input type="reset" value="确定" onclick="closeWin()" />
 		</div>
				 	
	<script>
		function closeWin() {
			top.Dialog.close();
		}
	</script>
</body>
</html>

